﻿{$header}
<div id="main" class="main" >
    <div class="content">
        <h3 class="heading">编辑产品 [ <a href="javascript:history.back()">返回列表</a> ]</h3>

        <ul id="myTab" class="nav nav-tabs">
            <li class="active"><a href="#home" data-toggle="tab">产品信息</a></li>
            <li><a href="__URL__/asksup/id/{$vo.id}" data-toggle="tab">询价</a></li>
            <li><a href="__URL__/buy/id/{$vo.id}" data-toggle="tab">采购</a></li>
            <li><a href="__URL__/inquiry/id/{$vo.id}" data-toggle="tab">询盘</a></li>
            <li><a href="__URL__/order/id/{$vo.id}">销售</a></li>
          </ul>
          <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active" id="home">
  <form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<div id="result" class="result none"></div>


<table cellpadding=3 cellspacing=3 >
<tr>
    <td class="tRight" >英文名称：</td>
    <td class="tLeft" >
            <input type="text" name="ename" value="{$vo.ename}" class="input-xxlarge">
    </td>
</tr>
<tr>
    <td class="tRight" >英文别名：</td>
    <td class="tLeft" >
            <input type="text" name="nick_ename" value="{$vo.nick_ename}" class="input-xxlarge">
    </td>
</tr>
<tr>
	<td class="tRight" >中文名称：</td>
	<td class="tLeft" >
            <input type="text" name="name" value="{$vo.name}" class="input-xxlarge" onblur="pinyin(this.value)">
    </td>
</tr>
<tr>
    <td class="tRight" >中文别名：</td>
    <td class="tLeft" >
            <input type="text" name="nick_name" value="{$vo.nick_name}" class="input-xxlarge">
    </td>
</tr>

<tr>
	<td class="tRight" >CAS号：</td>
	<td class="tLeft" >
            <input type="text" name="cas" value="{$vo.cas}" class="input-xxlarge"> 
            <img src="__PUBLIC__/Uploads/product/{$vo.cas}.jpg">
        </td>
</tr>
<tr>
	<td class="tRight" >分子式：</td>
	<td class="tLeft" >
            <input type="text" name="formula" value="{$vo.formula}" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >分子量：</td>
	<td class="tLeft" >
            <input type="text" name="weight" value="{$vo.weight}" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >类别：</td>
        <td class="tLeft" >
            <select name="cat_id">
                <option value="0" selected >无上级分类</option>
                <volist name="cate_list" id="list">
                    <option value="{$list.id}" <eq name="vo.cat_id" value="$list.id">selected</eq> >{$list.level}{$list.name}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >单位：</td>
	<td class="tLeft" >
            <select name="unit_id">
                <option value="-1">--请选择单位--</option>
                <volist name="units" id="ut">
                    <option value="{$key}" <eq name="vo.unit_id" value="$key">selected</eq> >{$ut}</option>
                </volist>
            </select>
        </td>
</tr>
<!--
<tr>
	<td class="tRight" >默认供应商：</td>
	<td class="tLeft" >
            <select name="supplier_id_default">
                <option value="-1">--请选择供应商--</option>
                <volist name="suppliers" id="sp">
                    <option value="{$key}" <eq name="vo.supplier_id_default" value="$key">selected</eq> >{$sp}</option>
                </volist>
            </select>
        </td>
</tr>
-->
<tr>
	<td class="tRight" >产品性质：</td>
	<td class="tLeft" >
            <input type="text" name="nature" value="{$vo.nature}" class="input-xxlarge">
        </td>
</tr>
<tr>
    <td class="tRight" >保存与运输条件：</td>
    <td class="tLeft" >
            <input type="text" name="store_requirement" value="{$vo.store_requirement}" class="input-xxlarge">
        </td>
</tr>
<tr>
	<td class="tRight" >库存报警点：</td>
	<td class="tLeft" >
            <input type="text" name="minstock" value="{$vo.minstock}" class="small">默认为0，无限制
        </td>
</tr>

<tr>
	<td class="tRight tTop">产品描述：</td>
	<td class="tLeft"><textarea class="large bLeft"  name="desc" style="width:650px;height:100px;">{$vo.desc}</textarea></td>
</tr>
<tr>
	<td class="tRight">状态：</td>
        <td class="tLeft">
            <SELECT class="small bLeft"   name="status">
                <option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
                <option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
            </SELECT>
        </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<script type="text/vbscript">
function vbChr(c)
    vbChr = chr(c)
end function

function vbAsc(n)
vbAsc = asc(n)
end function
</script>
<load href="__PUBLIC__/Js/py.js"/>
